<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/vue.min.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<p>{{name|test}}</p>
			<input type="text" name="" id="" value="" @keyup.enter="keytest" />
		</div>
		<script type="text/javascript">
			var vm = new Vue({
				el:'#app',
				data() {
					return {
						name: "小叶"
					}
				},
				filters:{
					test(val){
						return val+"测试"
					}
				},
				methods: {
					keytest() {
						console.log("测试");
					}
				},
			})
			
			console.log(vm.name);
		</script>
		
	</body>
</html>
